one year ago javascript date

56

one year ago javascript date -

var startDate = new Date();
    startDate.setFullYear(startDate.getFullYear() - 1);

Comments

Submit
0 Comments